import request from '@/utils/request'

// 发送邮件 验证码
export function ApiSendEmail(params) {
  return request({
    url: '/common/sendEmail',
    method: 'get',
    params
  })
}
//邮箱验证member/member/verifyEmail/code
export function memberverifyEmail(data) {
  return request({
    url: '/member/member/verifyEmail/'+data.code,
    method: 'get',
    data
  })
}

// 发送短信 验证码
export function ApiSendSms(params) {
  return request({
    url: '/common/sendSms',
    method: 'get',
    params
  })
}
// 获取可用区号
export function ApiAvailableAreaCode(params) {
  return request({
    url: '/common/availableAreaCode',
    method: 'get',
    params
  })
}
// 获取国家 - 省份/洲 - 市/区 countries states cities
export function ApiCountries(params) {
  return request({
    url: `/member/address/citys/${params.parentId}`,
    method: 'get',
    params
  })
}
// 获取客服链接
export function ApiCustomerService(params) {
  return request({
    url: '/common/customer',
    method: 'get',
    params
  })
}
